import Ajax from "./ajax";

const PermissApi = {};

PermissApi.list = () => {
    let url = "/permiss/list"
    return Ajax.json(url)
}

PermissApi.add = (params) => {
    let url = "/permiss/create"
    return Ajax.json(url, params)
}

PermissApi.del = (params) => {
    let url = "/permiss/del"
    return Ajax.json(url, params)
}

PermissApi.update = (params) => {
    let url = "/permiss/update"
    return Ajax.json(url, params)
}

PermissApi.detail = (params) => {
    let url = "/permiss/detail"
    return Ajax.json(url, params)
}

export default PermissApi
